#pragma once

class CSocketProtocol
{
public:
        CSocketProtocol()
        {
                ;
        }

        virtual ~CSocketProtocol(){
                ;
        }
        //客户端初始化 获取handle上下文
        virtual int cltSocketInit() = 0;

        //客户端发送报文
        virtual int cltSocketSend(unsigned char *buf,int buflen) = 0;

        //客户端收报文
        virtual int cltSocketRev(unsigned char *buf, int *buflen) = 0;
        
        //客户端释放资源
        virtual int cltSocketDestory() = 0;
};